#include "NegativeNode.h"

CNegativeNode::CNegativeNode(std::weak_ptr<CScriptFileContext> InFile)
    : CExpressionNode(InFile, EASTNodeType::NegativeValue)
{
}

void CNegativeNode::DebugPrint(int32_t InDepth)
{
    // Print Depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"-");
    Value->DebugPrint(0);
}

std::shared_ptr<CScriptToken> CNegativeNode::GetFirstToken()
{
    return Minus;
}
